package com.wen.decoratorPattern;

/**
 * 装饰者
 */
public abstract class Decorate implements Component{
    private Component component;
    public Decorate(Component component){
        this.component = component;
    }

    @Override
    public void operate(){
        component.operate();
    }

}
